<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const info = {
        size: {
          height: 300,
          width: 200,
        },
        fontSize: "10px",
        colors: ["green", "red"],
      };
      const {
        size,
        fontSize,
        colors,
        size: { width, height },
        colors: [c1, c2],
      } = info;
      console.log(size, fontSize, colors, width, height, c1, c2);
    </script>
  </body>
</html>
